package com.yunzone.cloud.modules.order.controller;

import com.yunzone.cloud.common.entity.Result;
import com.yunzone.cloud.modules.order.entity.Order;
import com.yunzone.cloud.modules.order.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class OrderController {

    @Resource
    private OrderService orderService;

    @GetMapping("/order/create")
    public Result create(Order order) {
        System.out.println("参数："+order);
        orderService.create(order);
        return new Result(200,true ,"订单创建完成");
    }



}